    <div class="container">
      <div class="bg-putih">

        <div class="jdl-page">
          Data Riwayat Pasien
          <div class="clearfix"></div>
        </div>
        
        <?php echo display_flash(); ?>

        <div class="row">
          <div class="col-xs-2">
            <div class="form-group">
             <label>Kode</label>
             <input type="text" class="form-control" value="<?php echo $pasien['KdPasien'] ?>" disabled>
           </div>
         </div>
         <div class="col-xs-3">
          <div class="form-group">
           <label>Nama</label>
           <input type="text" class="form-control" value="<?php echo $pasien['Nama'] ?>" disabled>
         </div>
       </div>
       <div class="col-xs-3">
        <div class="form-group">
         <label>Tanggal Lahir</label>
         <input type="text" class="form-control" value="<?php echo $pasien['TanggalLahir'] ?>" disabled>
       </div>
     </div>
     <div class="col-xs-2">
      <div class="form-group">
       <label>J. Kel.</label>
       <select class="form-control" disabled="disabled">
         <?php if($pasien['JKel'] == "L"): ?>
          <option selected="selected">Laki-laki</option>
        <?php else: ?>
          <option>Laki-laki</option>
        <?php endif; ?>

        <?php if($pasien['JKel'] == "P"): ?>
          <option selected="selected">Perempuan</option>
        <?php else: ?>
          <option>Perempuan</option>
        <?php endif; ?>
      </select>
    </div>
  </div>
  <div class="col-xs-2">
    <div class="form-group">
     <label>No. Register</label>
     <input type="text" class="form-control">
   </div>
 </div>
</div>
<hr/>

<div class="jdl-riwayat">
  <h3>Alergi <small><a id="btn-alergi" href="javascript:void(0)" class="btn-primary btn btn-xs">Tambah</a></small></h3>
  <div class="clearfix"></div>
</div>
<?php echo form_open(site_url("data_riwayat_pasien/alergi_add/$pasien[KdPasien]"), array('class' => 'form-horizontal', 'role' => 'form', 'id' => 'form')); ?>
<table class="table table-striped table-hover">
  <thead>
   <tr>
    <th width="40%">Alergi</th>
    <th width="49%">Keterangan</th>
    <th width="11%"></th>
  </tr>
</thead>
<tbody id="alergi-section">
  <?php foreach($alergi as $res_alergi): ?>
   <tr>
    <td>
      <a href="#" class="editme" id="NmAlergi" data-type="text" data-pk="<?php echo $res_alergi['KdAlergi'].",".$pasien['KdPasien'] ?>" data-url="<?php echo site_url('data_riwayat_pasien/update_alergi');?>" data-title="Masukkan maksimal dosis obat">
        <?php echo $res_alergi['Alergi'] ?>
      </a>
    </td>
    <td>
      <a href="#" class="editme" id="KetAlergi" data-type="text" data-pk="<?php echo $res_alergi['KdAlergi'].",".$pasien['KdPasien'] ?>" data-url="<?php echo site_url('data_riwayat_pasien/update_alergi');?>" data-title="Masukkan maksimal dosis obat">
        <?php echo $res_alergi['Keterangan'] ?>
      </a>
    </td>
    <td>
      <span class="pull-right">
        <a href="<?php echo site_url("data_riwayat_pasien/alergi_destroy/$res_alergi[KdAlergi]") ?>" onclick="return confirm('Yakin ingin menghapus data alergi ini?')" class="label btn-danger">Hapus</a>
      </span>
    </td>
  </tr>
<?php endforeach; ?>
<?php if(count($alergi) == 0): ?>
  <tr>
    <td colspan="3" align="center">Data alergi masih kosong</td>
  </tr>
<?php endif; ?>
</tbody>
<tfoot>
  <tr>
    <td colspan="3" align="right">
      <button type="submit" class="btn btn-sm btn-primary"><i class="fa fa-save fa-fw"></i> Simpan Data</button>
    </td>
  </tr>
</tfoot>
</table>
<?php echo form_close(); ?>

<div class="jdl-riwayat margintop35">
  <h3>Riwayat Penyakit <small><a href="javascript:void(0)" id="btn-r-penyakit" class="btn btn-xs btn-primary">Tambah</a></small></h3>
  <div class="clearfix"></div>
</div>  
<?php echo form_open(site_url("data_riwayat_pasien/r_penyakit_add/$pasien[KdPasien]"), array('class' => 'form-horizontal', 'role' => 'form', 'id' => 'form')); ?>      
<table class="table table-striped table-hover">
  <thead>
   <tr>
    <th width="40%">Penyakit</th>
    <th width="49%">Keterangan</th>
    <th width="11%"></th>
  </tr>
</thead>
<tbody id="r-penyakit-section">
 <?php foreach($r_penyakit as $res_penyakit): ?>
   <tr>
    <td>
      <a href="#" class="editme" id="NmPenyakit" data-type="text" data-pk="<?php echo $res_penyakit['KdRPenyakit'].",".$pasien['KdPasien'] ?>" data-url="<?php echo site_url('data_riwayat_pasien/update_penyakit');?>" data-title="Masukkan nama penyakit">
        <?php echo $res_penyakit['Penyakit'] ?>
      </a>
    </td>
    <td>
     <a href="#" class="editme" id="KetPenyakit" data-type="text" data-pk="<?php echo $res_penyakit['KdRPenyakit'].",".$pasien['KdPasien'] ?>" data-url="<?php echo site_url('data_riwayat_pasien/update_penyakit');?>" data-title="Masukkan keterangan penyakit">
      <?php echo $res_penyakit['Keterangan'] ?>
    </a>
  </td>
  <td>
    <span class="pull-right">
      <a href="<?php echo site_url("data_riwayat_pasien/penyakit_destroy/$res_penyakit[KdRPenyakit]") ?>" onclick="return confirm('Yakin ingin menghapus data penyakit ini?')" class="label btn-danger">Hapus</a>
    </span>
  </td>
</tr>
<?php endforeach; ?>
<?php if(count($r_penyakit) == 0): ?>
  <tr>
    <td colspan="3" align="center">Data riwayat penyakit masih kosong</td>
  </tr>
<?php endif; ?>
</tbody>
<tfoot>
  <tr>
    <td colspan="3" align="right">
      <button type="submit" class="btn btn-sm btn-primary"><i class="fa fa-save fa-fw"></i> Simpan Data</button>
    </td>
  </tr>
</tfoot>
</table>
<?php  echo form_close() ?>

<script type="text/javascript">
  function r_obat_add(){
    var html = "<tr>";
    html += "<td><select class='sel_obat form-control' name='obat[]'> <?php foreach($obat as $res_obat){echo "<option value='$res_obat[KdObat]'>$res_obat[NmObat]</option>"; } ?></select></td></td>";
    html += "<td><input type='text' name='dosis[]' class='form-control input-sm'/></td>";
    html += "<td><input type='text' name='keterangan[]' class='form-control input-sm'/></td>";
    html += "<td><button class='btn btn-xs btn-danger' onclick='destroy_row(this)'><i class='fa fa-fw fa-trash'></i></button></td></td>";
    html += "</tr>";
    
    $("#r-obat-section").append(html);     
    $(".sel_obat").select2();
  } 
</script>
<div class="jdl-riwayat margintop35">
  <h3>Riwayat Penggunaan Obat <small><a href="javascript:void(0)" onclick="r_obat_add()" id="btn-r-obat" class="btn btn-xs btn-primary">Tambah</a></small></h3>
  <div class="clearfix"></div>
</div>
<form action="<?php echo site_url("data_riwayat_pasien/r_obat_add/$pasien[KdPasien]") ?>" method="post">
<table class="table table-striped table-hover">
  <thead>
   <tr>
    <th width="40%">Obat</th>
    <th width="10%">Dosisi</th>
    <th width="40%%">Keterangan</th>
    <th width="10%"></th>
  </tr>
</thead>
<tbody id="r-obat-section">
  <?php foreach($r_obat as $res_obat): ?>
   <tr>
    <td>
      <?php echo $res_obat['NmObat'] ?>
    </td>
    <td>
      <a href="#" class="editme" id="Dosis" data-type="text" data-pk="<?php echo $res_obat['KdRObat'].",".$pasien['KdPasien'] ?>" data-url="<?php echo site_url('data_riwayat_pasien/update_r_obat');?>" data-title="Masukkan dosis obat">
        <?php echo $res_obat['Dosis'] ?>
      </a>
    </td>
    <td>
      <a href="#" class="editme" id="Keterangan" data-type="text" data-pk="<?php echo $res_obat['KdRObat'].",".$pasien['KdPasien'] ?>" data-url="<?php echo site_url('data_riwayat_pasien/update_r_obat');?>" data-title="Masukkan ketarangan obat">
        <?php echo $res_obat['Keterangan'] ?>
      </a>
    </td>
    <td>
     <span class="pull-right">
      <a href="<?php echo site_url("data_riwayat_pasien/r_obat_destroy/$res_obat[KdRObat]") ?>" onclick="return confirm('Yakin ingin menghapus data obat ini?')" class="label btn-danger">Hapus</a>
    </span>
  </td>
</tr>
<?php endforeach; ?>
</tbody>
<tfoot>
  <tr>
    <td colspan="4" align="right">
      <button type="submit" class="btn btn-sm btn-primary"><i class="fa fa-save fa-fw"></i> Simpan Data</button>
    </td>
  </tr>
</tfoot>
</table>
</form>

<?php echo form_open(site_url("data_riwayat_pasien/r_keluarga_add/$pasien[KdPasien]"), array('class' => 'form-horizontal', 'role' => 'form', 'id' => 'form')); ?>
<div class="jdl-riwayat margintop35">
  <h3>Riwayat Keluarga <small><a href="javascript:void(0)" id="btn-r-keluarga" class="btn btn-xs btn-primary">Tambah</a></small></h3>
  <div class="clearfix"></div>
</div>          
<table class="table table-striped table-hover">
  <thead>
   <tr>
    <th width="40%">Keluarga</th>
    <th width="49%">Keterangan</th>
    <th width="11%"></th>
  </tr>
</thead>
<tbody id="r-keluarga-section">
  <?php foreach($r_keluarga as $res_keluarga): ?>
   <tr>
    <td>
      <a href="#" class="editme" id="NmKeluarga" data-type="text" data-pk="<?php echo $res_keluarga['KdKeluarga'].",".$pasien['KdPasien'] ?>" data-url="<?php echo site_url('data_riwayat_pasien/update_keluarga');?>" data-title="Masukkan keterangan penyakit">
        <?php echo $res_keluarga['Keluarga'] ?>
      </a>
    </td>
    <td>
      <a href="#" class="editme" id="KetKeluarga" data-type="text" data-pk="<?php echo $res_keluarga['KdKeluarga'].",".$pasien['KdPasien'] ?>" data-url="<?php echo site_url('data_riwayat_pasien/update_keluarga');?>" data-title="Masukkan keterangan penyakit">
        <?php echo $res_keluarga['Keterangan'] ?>
      </a>
    </td>
    <td>
     <span class="pull-right">
      <a href="<?php echo site_url("data_riwayat_pasien/keluarga_destroy/$res_keluarga[KdKeluarga]") ?>" onclick="return confirm('Yakin ingin menghapus data keluarga ini?')" class="label btn-danger">Hapus</a>
    </span>
  </td>
</tr>
<?php endforeach; ?>
</tbody>
<tfoot>
  <tr>
    <td colspan="3" align="right">
      <button type="submit" class="btn btn-sm btn-primary"><i class="fa fa-save fa-fw"></i> Simpan Data</button>
    </td>
  </tr>
</tfoot>
</table>
<?php echo form_close() ?>

<div class="jdl-riwayat margintop35">
  <h3>Riwayat Sosial <small><a id="btn-r-sosial" href="javascript:void(0)" class="btn-primary btn btn-xs">Tambah</a></small></h3>

  <div class="clearfix"></div>
</div>
<?php echo form_open(site_url("data_riwayat_pasien/r_sosial_add/$pasien[KdPasien]"), array('class' => 'form-horizontal', 'role' => 'form', 'id' => 'form')); ?>
<table class="table table-striped table-hover">
  <thead>
   <tr>
    <th>Sosial</th>
    <th>Keterangan</th>
    <th></th>
  </tr>
</thead>
<tbody id="r-sosial-section">
 <?php foreach($r_sosial as $res_sosial): ?>
   <tr>
    <td>
      <a href="#" class="editme" id="NmSosial" data-type="text" data-pk="<?php echo $res_sosial['KdRSosial'].",".$pasien['KdPasien'] ?>" data-url="<?php echo site_url('data_riwayat_pasien/update_sosial');?>" data-title="Masukkan riwayat sosial">
        <?php echo $res_sosial['Sosial'] ?>
      </a>
    </td>
    <td>
      <a href="#" class="editme" id="KetSosial" data-type="text" data-pk="<?php echo $res_sosial['KdRSosial'].",".$pasien['KdPasien'] ?>" data-url="<?php echo site_url('data_riwayat_pasien/update_sosial');?>" data-title="Masukkan keterangan sosial">
        <?php echo $res_sosial['Keterangan'] ?>
      </a>
    </td>
    <td>
     <span class="pull-right">
      <a href="<?php echo site_url("data_riwayat_pasien/sosial_destroy/$res_sosial[KdRSosial]") ?>" onclick="return confirm('Yakin ingin menghapus data sosial ini?')" class="label btn-danger">Hapus</a>
    </span>
  </td>
</tr>
<?php endforeach; ?>
</tbody>
<tfoot>
  <tr>
    <td colspan="3" align="right">
      <button type="submit" class="btn btn-sm btn-primary"><i class="fa fa-save fa-fw"></i> Simpan Data</button>
    </td>
  </tr>
</tfoot>
</table>
<?php echo form_close(); ?>

<div class="jdl-riwayat margintop35">
  <h3>Kunjungan</h3>

  <div class="clearfix"></div>
</div>         

<?php echo form_open(site_url("data_riwayat_pasien/r_hasillab_add/$pasien[KdPasien]"), array('class' => 'form-horizontal', 'role' => 'form', 'id' => 'form')); ?>
<table class="table table-striped table-hover">
  <thead>
   <tr>
    <th>Tanggal</th>
    <th>Keluhan</th>
    <th></th>
  </tr>
</thead>
<tbody>
  <?php foreach($r_kunjungan as $res_kunjungan): ?>
   <tr>
    <td class="td-tglkunjungan">      
      <a href="#" class="editme" id="TglKunjungan" data-type="text" data-pk="<?php echo $res_kunjungan['KdKunjungan'].",".$pasien['KdPasien'] ?>" data-url="<?php echo site_url('data_riwayat_pasien/update_kunjungan');?>" data-title="Masukkan riwayat kunjungan">
        <?php echo $res_kunjungan['Tanggal'] ?>
      </a>
    </td>
    <td>
      <a href="#" class="editme" id="Keluhan" data-type="text" data-pk="<?php echo $res_kunjungan['KdKunjungan'].",".$pasien['KdPasien'] ?>" data-url="<?php echo site_url('data_riwayat_pasien/update_kunjungan');?>" data-title="Masukkan keluhan">
        <?php echo $res_kunjungan['Keluhan'] ?>
      </a>
    </td>
    <td>
     <span class="pull-right">
      <a href="<?php echo site_url("data_riwayat_pasien/kunjungan_destroy/$res_kunjungan[KdKunjungan]") ?>" onclick="return confirm('Yakin ingin menghapus data kunjungan ini?')" class="label btn-danger">Hapus</a>
    </span>
  </td>
</tr>
<?php endforeach; ?>
</tbody>
</table>

<div class="jdl-riwayat margintop35">
  <h3>Hasil Lab dan Resep</h3>
  <div class="clearfix"></div>
</div>

<style type="text/css">
  #tbl-r-hasillab > tbody > tr > td{
    vertical-align: top;
  }
  .subtbl-r-hasillab .form-control{
    margin-bottom: 5px;
  }
  .subtbl-r-hasillab tr:last-child .form-control{
    margin-bottom: 0px;
  }
</style>

<?php echo form_open(site_url("data_riwayat_pasien/lab_obat_add/"), array('class' => 'form-horizontal', 'role' => 'form', 'id' => 'form')); ?>
<table id="tbl-r-hasillab" class="table table-striped table-hover">
  <thead>
   <tr>
    <th width="20%">Tanggal</th>
    <th width="40%">Hasil Lab</th>
    <th width="40%">Resep</th>
  </tr>
</thead>
<tbody>
  <?php foreach($r_kunjungan as $res_kunjungan2): ?>
    <tr>
      <td><?php echo $res_kunjungan2['Tanggal'] ?></td>
      <td>      
        <table class="subtbl-r-hasillab table table-striped">
          <tbody class="hasillab-body">            
            <?php  
            $this->db->join('kunjungan', 'kunjungan.KdKunjungan=r_hasil_lab.KdKunjungan');
            $this->db->where('r_hasil_lab.KdKunjungan', $res_kunjungan2['KdKunjungan']);
            $res_hasillab = $this->db->get('r_hasil_lab')->result_array();              
            ?>
            <?php if(count($res_hasillab) > 0): ?>
              <?php foreach($res_hasillab as $row_hasillab): ?>
                <tr>
                  <td>
                    <a href="#" class="editme" id="Hasil" data-type="text" data-pk="<?php echo $row_hasillab['KdHasilLab'] ?>" data-url="<?php echo site_url('data_riwayat_pasien/update_hasillab');?>" data-title="Masukkan hasil lab">
                      <?php echo $row_hasillab['Hasil'] ?>
                    </a>
                  </td>
                  <td align="right"><a href="<?php echo site_url("data_riwayat_pasien/hasillab_destroy/$row_hasillab[KdHasilLab]") ?>" onclick="return confirm('Yakin ingin menghapus data hasil lab ini?')" class="label btn-danger"><i class="fa fa-trash"></i></a></td>
                </tr>
              <?php endforeach; ?>
            <?php else: ?>
              <tr>
                <td colspan="2" align="center">Tidak ada data hasil lab</td>
              </tr>
            <?php endif; ?>
            <input class="txt-kdkunjungan" type="hidden" value="<?php echo $res_kunjungan2['KdKunjungan'] ?>"/>
          </tbody>
          <tfoot>
            <tr>
              <td colspan="2" align="right" style="padding-top:5px;">
                <a href="javascript:void(0)" class="btn btn-xs btn-success btn-add-hasillab"><i class="fa fa-plus"></i></a>
              </td>
            </tr>
          </tfoot>          
        </table>        
      </td>
      <td>
        <table class="table table-striped">
        <tbody class="r_obat-body">            
            <?php  
            $this->db->join('kunjungan', 'kunjungan.KdKunjungan=resep.KdKunjungan');
            $this->db->where('resep.KdKunjungan', $res_kunjungan2['KdKunjungan']);
            $res_resep = $this->db->get('resep')->result_array();              
            ?>
            <?php if(count($res_resep) > 0): ?>
              <?php foreach($res_resep as $row_resep): ?>
                <tr>
                  <td><?php echo $row_resep['NmDokter'] ?></td>
                  <td align="right"><a href="<?php echo site_url("resep/resep_edit/$row_resep[KdResep]") ?>" class="label btn-info"><i class="fa fa-pencil"></i></a></td>
                  <input class="txt-kdkunjungan" type="hidden" value="<?php echo $row_resep['KdResep'] ?>"/>
                </tr>
                <?php 
                $this->db->join('obat', 'obat.KdObat=obat_resep.KdObat'); 
                $this->db->join('resep', 'resep.KdResep=obat_resep.KdResep');
                $this->db->where('obat_resep.KdResep', $row_resep['KdResep']);
                $this->db->order_by('KdObatResep', 'asc');
                $q_obat_resep = $this->db->get('obat_resep')->result_array();
                ?>
                <?php if(count($q_obat_resep) > 0): ?>
                  <?php foreach($q_obat_resep as $row_resep_obat): ?>
                    <tr>
                      <td>
                        <a href="#" id="KdObat" class="sel-edit" data-type="select" data-pk="<?php echo $row_resep_obat['KdObatResep'] ?>" data-url="<?php echo site_url('resep/update_obat_resep');?>" data-title="Select status">
                          <?php echo $row_resep_obat['NmObat'] ?>
                        </a>                        
                        <script>
                        $(function(){
                            $('.sel-edit').editable({
                                value: <?php echo $row_resep_obat['KdObat'] ?>,    
                                source: [<?php $res_sel_obat = $this->db->get('obat')->result_array(); foreach($res_sel_obat as $sel_resep_obat){echo "{value: $sel_resep_obat[KdObat], text:'$sel_resep_obat[NmObat]'},"; } ?> ]
                            });
                        });
                        </script>
                      </td>
                      <td align="right"><a href="<?php echo site_url("resep/destroy_obat_resep/$row_resep_obat[KdObatResep]") ?>" class="label btn-danger" onclick="return confirm('Yakin ingin menghapus data resep obat ini?')"><i class="fa fa-trash"></i></a></td>
                    </tr>
                  <?php endforeach; ?>
                <?php else: ?>
                  <tr>
                    <td colspan="2" align="center">Tidak ada data resep obat</td>
                  </tr>
                <?php endif; ?>
                <tfoot>
                  <tr>
                    <td colspan="2" align="right" style="padding-top:5px;">
                      <a href="javascript:void(0)" class="btn btn-xs btn-success btn-add-resep"><i class="fa fa-plus"></i></a>
                    </td>
                  </tr>
                </tfoot>
              <?php endforeach; ?>
            <?php else: ?>
              <tr>
                <td colspan="2" align="center">Tidak ada data resep. <a href="<?php echo site_url("resep/resep_add/$res_kunjungan2[KdKunjungan]") ?>">Tambah Resep</a></td>
              </tr>
            <?php endif; ?>
          </tbody>
         </table>
      </td>
    </tr>
    <script type="text/javascript">
      function r_hasillab_add(){
        $(".btn-add-hasillab").click(function(){
          var KdKunjungan = $(this).closest("table").closest("table").find(".hasillab-body .txt-kdkunjungan").val();
          var html = "<tr>";  
          html += "<td><input type='text' name='hasillab[]' class='form-control input-sm'/><input type='hidden' name='kk-hasillab[]' value='"+KdKunjungan+"'/></td>";
          html += "<td align='right'><button class='btn btn-xs btn-danger' onclick='destroy_row(this)'><i class='fa fa-fw fa-trash'></i></button></td>";
          html += "</tr>"
          $(this).closest("table").find(".hasillab-body").append(html);
        });

        $(".btn-add-resep").click(function(){
          var KdKunjungan = $(this).closest("table").closest("table").find(".r_obat-body .txt-kdkunjungan").val();
          var html = "<tr>";  
          html += "<td><select class='sel_obat form-control' name='obat[]'> <?php foreach($obat as $res_obat2){echo "<option value='$res_obat2[KdObat]'>$res_obat2[NmObat]</option>"; } ?></select><input type='hidden' name='kk-resep[]' value='"+KdKunjungan+"'/></td>";
          html += "<td align='right'><button class='btn btn-xs btn-danger' onclick='destroy_row(this)'><i class='fa fa-fw fa-trash'></i></button></td>";
          html += "</tr>"
          $(this).closest("table").find(".r_obat-body").append(html);
          $(".sel_obat").select2();
        }); 
      }
    </script>
  <?php endforeach; ?>
</tbody>
<tfoot>
  <tr>
    <td colspan="3" align="right">
      <button type="submit" class="btn btn-sm btn-primary"><i class="fa fa-save fa-fw"></i> Simpan Data</button>
    </td>
  </tr>
</tfoot>
</table>
<?php echo form_close() ?>
<script type="text/javascript">

  $(document).ready(function(){
    r_hasillab_add(); 
  });
</script>

<div class="jdl-riwayat margintop35">
  <h3>Obat</h3>

  <div class="clearfix"></div>
</div>        
<table class="table table-striped table-hover">
  <thead>
   <tr>
    <th>Obat</th>
    <th>Dosis</th>
    <th>Keterangan</th>
  </tr>
</thead>
<tbody>
 <tr>
  <td>
   Lorem ipsum dolor sit amet
 </td>
 <td>
   Lorem ipsum dolor sit amet
 </td>
 <td>
   keterangan
   <span class="pull-right">
    <a href="#" class="label btn-primary">Tambah</a>
    <a href="#" class="label btn-warning">Edit</a>
    <a href="#" class="label btn-danger">Hapus</a>
  </span>
</td>
</tr>

<tr>
  <td>
   Lorem ipsum dolor sit amet
 </td>
 <td>
   Lorem ipsum dolor sit amet
 </td>
 <td>
   keterangan
   <span class="pull-right">
    <a href="#" class="label btn-primary">Tambah</a>
    <a href="#" class="label btn-warning">Edit</a>
    <a href="#" class="label btn-danger">Hapus</a>
  </span>
</td>
</tr>

<tr>
  <td>
   Lorem ipsum dolor sit amet
 </td>
 <td>
   Lorem ipsum dolor sit amet
 </td>
 <td>
   keterangan
   <span class="pull-right">
    <a href="#" class="label btn-primary">Tambah</a>
    <a href="#" class="label btn-warning">Edit</a>
    <a href="#" class="label btn-danger">Hapus</a>
  </span>
</td>
</tr>

</tbody>
</table>

<div class="clearfix"></div>
</div>
    </div> <!-- /container -->